/**
 *
 */
package com.ssyt.examinationsystem.service.impl;

import com.ssyt.examinationsystem.dao.ISubAnswerInfoDAO;
import com.ssyt.examinationsystem.dao.impl.SubAnswerInfoDAOImpl;
import com.ssyt.examinationsystem.entity.SubjectiveAnswerInfo;
import com.ssyt.examinationsystem.service.ISubAnswerInfoService;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
public class SubAnswerInfoServiceImpl implements ISubAnswerInfoService {

    ISubAnswerInfoDAO subAnswerDao = new SubAnswerInfoDAOImpl();

    /*
     * (non-Javadoc)
     *
     * @see
     * com.ssyt.examinationsystem.service.ISubAnswerInfoService#addSubAnswer(com
     * .ssyt.examinationsystem.entity.SubjectiveAnswerInfo)
     */
    @Override
    public int addSubAnswer(SubjectiveAnswerInfo subAnswer) {
        return subAnswerDao.addSubAnswer(subAnswer);
    }

    /* (non-Javadoc)
     * @see com.ssyt.examinationsystem.service.ISubAnswerInfoService#getSubAnswer()
     */
    @Override
    public List<Map<String, Object>> getSubAnswer() {
        return subAnswerDao.getSubAnswer();
    }

    /* (non-Javadoc)
     * @see com.ssyt.examinationsystem.service.ISubAnswerInfoService#getSubAnswerBySubId(java.lang.String)
     */
    @Override
    public Map<String, Object> getSubAnswerBySubId(String subId) {
        return subAnswerDao.getSubAnswerBySubId(subId);
    }

    /* (non-Javadoc)
     * @see com.ssyt.examinationsystem.service.ISubAnswerInfoService#getSubAnswerByPaperIdAndStuId(java.lang.String, java.lang.String)
     */
    @Override
    public String getSubAnswerByPaperIdAndStuId(String paperId, String stuId) {
        return subAnswerDao.getSubAnswerByPaperIdAndStuId(paperId, stuId);
    }

    /* (non-Javadoc)
     * @see com.ssyt.examinationsystem.service.ISubAnswerInfoService#getReCheckList(java.lang.String)
     */
    @Override
    public List<Map<String, Object>> getReCheckList(String subIds) {
        return subAnswerDao.getReCheckList(subIds);
    }

}
